//
// 嗨~ o(*￣▽￣*)ブ
// Created by Mokou on 2020/7/17.
//

/**
 * 播放计划
 * */
@interface ElecSchedule : NSObject

@property (nonatomic, copy) NSString *id;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, assign) int direction;
@property (nonatomic, assign) long long duration;
@property (nonatomic, assign) long long material_duration;
@property (nonatomic, assign) long long size;
@property (nonatomic, assign) long long createtime;
@property (nonatomic, assign) long long updatetime;

- (instancetype)init:(NSDictionary *)data;
- (NSDictionary *)getDict;
- (void)fillDataByAnotherObj:(ElecSchedule *)elecSchedule;

+ (NSDictionary *)create:(NSDictionary *)data;
+ (void)delete:(NSDictionary *)data;
+ (void)update:(NSDictionary *)data;
+ (NSDictionary *)select:(NSDictionary *)data;
+ (NSDictionary *)select_page:(NSDictionary *)data;
+ (NSDictionary *)check_expired:(NSDictionary *)data;
+ (void)clear:(NSDictionary *)data;
+ (void)refreshUpdateTime:(NSString *)id;

@end